<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的收藏 - Game Hub</title>
    <link rel="stylesheet" href="assets/css/main.css">
    <link rel="stylesheet" href="assets/css/favorites.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
</head>
<body>
    <header class="header">
        <nav class="nav-container">
            <div class="nav-left">
                <div class="logo">
                    <span class="logo-text">Game Hub</span>
                </div>
                <div class="nav-links">
                    <a href="index.html">首页</a>
                    <a href="leaderboard.html">排行榜</a>
                    <a href="#">新品推荐</a>
                    <a href="favorites.html" class="active">收藏夹</a>
                </div>
            </div>
            <div class="nav-right">
                <div class="search-container">
                    <input type="text" placeholder="搜索游戏...">
                    <button class="search-btn">
                        <svg width="20" height="20" viewBox="0 0 24 24" fill="none">
                            <path d="M21 21L16.5 16.5M19 11C19 15.4183 15.4183 19 11 19C6.58172 19 3 15.4183 3 11C3 6.58172 6.58172 3 11 3C15.4183 3 19 6.58172 19 11Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
                        </svg>
                    </button>
                </div>
                <button class="user-btn">
                    <svg width="24" height="24" viewBox="0 0 24 24" fill="none">
                        <path d="M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
                        <path d="M20 21C20 18.2386 16.4183 16 12 16C7.58172 16 4 18.2386 4 21" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
                    </svg>
                </button>
            </div>
        </nav>
    </header>

    <main class="favorites">
        <div class="page-header">
            <h1 class="page-title">我的收藏</h1>
            <p class="page-subtitle">在这里管理你收藏的所有游戏，随时开始你的游戏之旅！</p>
        </div>

        <div class="favorites-filters">
            <div class="filters-grid">
                <div class="filter-group">
                    <label class="filter-label" for="genre-filter">游戏类型</label>
                    <select id="genre-filter" class="filter-select">
                        <option value="all">全部类型</option>
                        <option value="action">动作冒险</option>
                        <option value="puzzle">益智解谜</option>
                        <option value="strategy">策略</option>
                        <option value="rpg">角色扮演</option>
                        <option value="sports">体育竞技</option>
                    </select>
                </div>
                <div class="filter-group">
                    <label class="filter-label" for="sort-filter">排序方式</label>
                    <select id="sort-filter" class="filter-select">
                        <option value="recent">最近添加</option>
                        <option value="playtime">游戏时长</option>
                        <option value="rating">评分</option>
                    </select>
                </div>
            </div>
        </div>

        <div class="favorites-content">
            <div class="favorites-grid">
                <!-- 游戏卡片 - 示例 1 -->
                <div class="game-card">
                    <div class="game-image">
                        <img src="https://picsum.photos/400/225?random=1" alt="游戏图片">
                        <div class="game-overlay">
                            <button class="btn-primary">开始游戏</button>
                            <button class="btn-secondary">取消收藏</button>
                        </div>
                    </div>
                    <div class="game-info">
                        <h3>荒野大镖客：救赎</h3>
                        <div class="game-meta">
                            <span class="game-genre">动作冒险</span>
                            <span class="game-rating">9.8</span>
                        </div>
                        <div class="game-stats">
                            <span class="playtime">游戏时长：120小时</span>
                            <span class="last-played">最近游玩：2天前</span>
                        </div>
                    </div>
                </div>

                <!-- 游戏卡片 - 示例 2 -->
                <div class="game-card">
                    <div class="game-image">
                        <img src="https://picsum.photos/400/225?random=2" alt="游戏图片">
                        <div class="game-overlay">
                            <button class="btn-primary">开始游戏</button>
                            <button class="btn-secondary">取消收藏</button>
                        </div>
                    </div>
                    <div class="game-info">
                        <h3>塞尔达传说：旷野之息</h3>
                        <div class="game-meta">
                            <span class="game-genre">动作冒险</span>
                            <span class="game-rating">9.9</span>
                        </div>
                        <div class="game-stats">
                            <span class="playtime">游戏时长：85小时</span>
                            <span class="last-played">最近游玩：1周前</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 空状态 -->
            <div class="empty-state" style="display: none;">
                <img src="assets/images/empty-favorites.svg" alt="空收藏夹">
                <h2>收藏夹还是空的</h2>
                <p>浏览游戏并添加到收藏夹，开始你的游戏之旅吧！</p>
                <a href="index.html" class="btn-primary">浏览游戏</a>
            </div>
        </div>
    </main>

    <footer class="footer">
        <div class="footer-content">
            <div class="footer-top">
                <div class="footer-brand">
                    <h3>Game Hub</h3>
                    <p>发现快乐，享受游戏</p>
                </div>
                <div class="footer-links">
                    <div class="footer-column">
                        <h4>关于我们</h4>
                        <a href="#">公司介绍</a>
                        <a href="#">加入我们</a>
                        <a href="#">联系方式</a>
                    </div>
                    <div class="footer-column">
                        <h4>帮助支持</h4>
                        <a href="#">常见问题</a>
                        <a href="#">用户指南</a>
                        <a href="#">意见反馈</a>
                    </div>
                    <div class="footer-column">
                        <h4>关注我们</h4>
                        <div class="social-links">
                            <a href="#" class="social-link">微信</a>
                            <a href="#" class="social-link">微博</a>
                            <a href="#" class="social-link">抖音</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2024 Game Hub. All rights reserved.</p>
                <div class="footer-legal">
                    <a href="#">隐私政策</a>
                    <a href="#">用户协议</a>
                    <a href="#">免责声明</a>
                </div>
            </div>
        </div>
    </footer>

    <script src="assets/js/favorites.js"></script>
</body>
</html>
